package com.system.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * 宿舍财产
 *
 * @TableName dorm_property
 */
@TableName(value = "dorm_property")
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
public class DormProperty extends CommonProperty implements Serializable {
    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 宿舍id
     */
    @TableField(value = "dorm_id")
    private Long dormId;

    /**
     * 财产名称
     */
    @TableField(value = "property_name")
    private String propertyName;

    /**
     * 财产数量
     */
    @TableField(value = "property_number")
    private Integer propertyNumber;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}